<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Product.aspx.cs" Inherits="Product" title="Project Monitoring System" culture="auto:en-US" uiculture="auto" maintainscrollpositiononpostback="true" meta:resourcekey="PageResource1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server" Visible="false">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server" Visible="false">
    <div style="margin-left:10px;margin-right:10px;">
        <asp:Panel ID="SearchPanel" runat="server">
            <fieldset>
                <legend><asp:Label ID="lblSearch" runat="server" Text="Search" meta:resourcekey="lblSearchResource1"></asp:Label></legend>
                <table>
                    <tr>
                        <td align="left">
                            <asp:Label ID="lblSearchModel" runat="server" Text="Model No:" meta:resourcekey="lblModel"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtSearchModel" runat="server"></asp:TextBox>
                        </td>
                        <td width="10"></td>
                        <td align="left">
                            <asp:Label ID="lblSearchModelName" runat="server" Text="Model Name:" meta:resourcekey="lblModelName"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtSearchModelName" runat="server" Width="272px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="left">
                            <asp:Label ID="lblSearchCreateDate" runat="server" Text="Create Date:"  meta:resourcekey="lblCreateDate"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtSearchCreateDate" runat="server" Width="80px"></asp:TextBox>
                            <cc1:CalendarExtender ID="CalendarExtender7" runat="server" Enabled="true" Format="dd/MM/yyyy" TargetControlID="txtSearchCreateDate">
                            </cc1:CalendarExtender>
                        </td>
                        <td width="10"></td>
                        <td align="left">
                            <asp:Label ID="lblSearchSpecs" runat="server" Text="Specification:" meta:resourcekey="lblSpecification"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtSearchSpecs" runat="server" Width="272px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="5" align="center">
                            <asp:Button ID="btnSearch" runat="server" Text="Search" CausesValidation="false" meta:resourcekey="btnSearch" OnClick="btnSearch_Click" CssClass="submit" />
                            <asp:Button ID="btnReset" runat="server" CssClass="submit" Height="28px" meta:resourcekey="sReset" OnClientClick="javascript:Reset();return false;" Text="Reset" UseSubmitBehavior="False" />
					    <asp:Button ID="btnNewProduct" runat="server" CausesValidation="False" CssClass="submit" Text="New Product" meta:resourcekey="btnNewProductResource1" OnClick="btnNewProduct_Click" />
                        </td>
                    </tr>
                </table>
            </fieldset>
        </asp:Panel>
        <table width="100%">
            <tr align="center">
                <td>
                    <asp:Label ID="lblError" runat="server" Text="[ErrorMessage]" CssClass="error" Visible="False" meta:resourcekey="lblErrorResource1"></asp:Label>
                </td>
            </tr>
        </table>
        <asp:Panel ID="PanelList" runat="server" ScrollBars="none" meta:resourcekey="PanelListResource1">
            <asp:ObjectDataSource ID="ODSProducts" runat="server" OldValuesParameterFormatString="original_{0}"
                SelectMethod="GetProducts" TypeName="IPTableAdapters.ProductTableAdapter" DeleteMethod="Delete"
                InsertMethod="Insert" UpdateMethod="Update">
                <DeleteParameters>
                    <asp:Parameter Name="Original_Model" Type="String" />
                </DeleteParameters>
                <UpdateParameters>
                    <asp:Parameter Name="Model" Type="String" />
                    <asp:Parameter Name="Revision" Type="String" />
                    <asp:Parameter Name="ModelName" Type="String" />
                    <asp:Parameter Name="Specification" Type="String" />
                    <asp:Parameter Name="ProjectGroupID" Type="String" />
                    <asp:Parameter Name="Remark1" Type="String" />
                    <asp:Parameter Name="Remark2" Type="String" />
                    <asp:Parameter Name="Remark3" Type="String" />
                    <asp:Parameter Name="Remark4" Type="String" />
                    <asp:Parameter Name="Remark5" Type="String" />
                    <asp:Parameter Name="DateFld1" Type="DateTime" />
                    <asp:Parameter Name="DateFld2" Type="DateTime" />
                    <asp:Parameter Name="DateFld3" Type="DateTime" />
                    <asp:Parameter Name="DateFld4" Type="DateTime" />
                    <asp:Parameter Name="DateFld5" Type="DateTime" />
                    <asp:Parameter Name="DeciFld1" Type="Decimal" />
                    <asp:Parameter Name="DeciFld2" Type="Decimal" />
                    <asp:Parameter Name="UpdateBy" Type="String" />
                    <asp:Parameter Name="CreateDate" Type="DateTime" />
                    <asp:Parameter Name="Original_Model" Type="String" />
                </UpdateParameters>
                <InsertParameters>
                    <asp:Parameter Name="Model" Type="String" />
                    <asp:Parameter Name="Revision" Type="String" />
                    <asp:Parameter Name="ModelName" Type="String" />
                    <asp:Parameter Name="Specification" Type="String" />
                    <asp:Parameter Name="ProjectGroupID" Type="String" />
                    <asp:Parameter Name="Remark1" Type="String" />
                    <asp:Parameter Name="Remark2" Type="String" />
                    <asp:Parameter Name="Remark3" Type="String" />
                    <asp:Parameter Name="Remark4" Type="String" />
                    <asp:Parameter Name="Remark5" Type="String" />
                    <asp:Parameter Name="DateFld1" Type="DateTime" />
                    <asp:Parameter Name="DateFld2" Type="DateTime" />
                    <asp:Parameter Name="DateFld3" Type="DateTime" />
                    <asp:Parameter Name="DateFld4" Type="DateTime" />
                    <asp:Parameter Name="DateFld5" Type="DateTime" />
                    <asp:Parameter Name="DeciFld1" Type="Decimal" />
                    <asp:Parameter Name="DeciFld2" Type="Decimal" />
                    <asp:Parameter Name="CreateBy" Type="String" />
                    <asp:Parameter Name="UpdateBy" Type="String" />
                    <asp:Parameter Name="OwnerGroupID" Type="String" />
                    <asp:Parameter Name="CreateDate" Type="DateTime" />
                </InsertParameters>
                <SelectParameters>
                    <asp:SessionParameter DefaultValue="False" Name="SuperUser" SessionField="SuperUser" Type="Boolean" />
                    <asp:SessionParameter DefaultValue="" Name="OwnerGroupID" SessionField="OwnerGroupID" Type="String" />
                </SelectParameters>
            </asp:ObjectDataSource>
		    <asp:GridView CssClass="Grid" ID="GridViewProducts" runat="server" AutoGenerateColumns="False" 
		        BackColor="#DEBA84" BorderColor="#660000" BorderStyle="Solid" BorderWidth="1px" CellPadding="0" CellSpacing="0" 
		        DataKeyNames="Model,Revision,ModelName,Specification,ProjectGroupID,Remark1,Remark2,Remark3,Remark4,Remark5,DateFld1,DateFld2,DateFld3,DateFld4,DateFld5,DeciFld1,DeciFld2,CreateBy,UpdateBy,OwnerGroupID,CreateDate"
			    DataSourceID="ODSProducts" AllowSorting="True" PageSize="10" 
			    Width="100%" AllowPaging="True" meta:resourcekey="GridViewProductsResource1"  
			    OnSelectedIndexChanged="GridViewProducts_SelectedIndexChanged"
			    OnPageIndexChanging="GridViewProducts_PageIndexChanging"  
			    OnSorting="GridViewProducts_Sorting" 
			    OnRowCreated="GridViewProducts_RowCreated">
			    <Columns>
				    <asp:BoundField DataField="Model" HeaderText="Model" ReadOnly="True" SortExpression="Model" Visible="False" meta:resourcekey="BoundFieldResource23" />
				    <asp:ButtonField CommandName="Select" DataTextField="Model" HeaderText="Model" Text="Button" Visible="false" SortExpression="Model" meta:resourcekey="BoundFieldResource1"/>
					<asp:BoundField DataField="Model" HeaderText="Model" SortExpression="Model" HeaderStyle-Width="100" meta:resourcekey="TemplateFieldResource1" />
				    <asp:BoundField DataField="Revision" HeaderText="Revision" SortExpression="Revision" meta:resourcekey="BoundFieldResource24" />
				    <asp:BoundField DataField="ModelName" HeaderText="Model Name" SortExpression="ModelName" HeaderStyle-Width="200" meta:resourcekey="BoundFieldResource2"/>
					<asp:BoundField DataField="Specification" HeaderText="Specification" SortExpression="Specification" HeaderStyle-Width="200" meta:resourcekey="BoundFieldResource3"/>
					<asp:BoundField DataField="CreateDate" HeaderText="Create Date" SortExpression="CreateDate" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource4"/>
					<asp:BoundField DataField="ProjectGroupID" HeaderText="Project Group ID" SortExpression="ProjectGroupID" NullDisplayText="-None-" meta:resourcekey="BoundFieldResource22" Visible="False"/>
					<asp:BoundField DataField="Remark1" Visible="false" HeaderText="Remark1" SortExpression="Remark1" meta:resourcekey="BoundFieldResource6" />
					<asp:BoundField DataField="Remark2" HeaderText="Remark2" Visible="false" SortExpression="Remark2" meta:resourcekey="BoundFieldResource7" />
				    <asp:BoundField DataField="Remark3" HeaderText="Remark3" Visible="false" SortExpression="Remark3" meta:resourcekey="BoundFieldResource8" />
				    <asp:BoundField DataField="Remark4" HeaderText="Remark4" Visible="false" SortExpression="Remark4" meta:resourcekey="BoundFieldResource9" />
				    <asp:BoundField DataField="Remark5" HeaderText="Remark5" Visible="false" SortExpression="Remark5" meta:resourcekey="BoundFieldResource10" />
				    <asp:BoundField DataField="DateFld1"  HeaderText="DateFld1" SortExpression="DateFld1" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource11" />
				    <asp:BoundField DataField="DateFld2" Visible="false" HeaderText="DateFld2" SortExpression="DateFld2" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource12" />
				    <asp:BoundField DataField="DateFld3" Visible="false" HeaderText="DateFld3" SortExpression="DateFld3" DataFormatString="{0:dd/MM/yyyy}"  HtmlEncode="False" meta:resourcekey="BoundFieldResource13" />
				    <asp:BoundField DataField="DateFld4" Visible="false" HeaderText="DateFld4" SortExpression="DateFld4" DataFormatString="{0:dd/MM/yyyy}"  HtmlEncode="False" meta:resourcekey="BoundFieldResource14" />
				    <asp:BoundField DataField="DateFld5" Visible="false" HeaderText="DateFld5" SortExpression="DateFld5" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource15" />
				    <asp:BoundField DataField="DeciFld1" HeaderText="DeciFld1" SortExpression="DeciFld1" DataFormatString="{0:f2}" meta:resourcekey="BoundFieldResource16" HtmlEncode="False" />
					<asp:BoundField DataField="DeciFld2" HeaderText="DeciFld2" SortExpression="DeciFld2" DataFormatString="{0:f2}" meta:resourcekey="BoundFieldResource17" HtmlEncode="False" />
					<asp:BoundField DataField="CreateBy" HeaderText="CreateBy" SortExpression="CreateBy" Visible="False" meta:resourcekey="BoundFieldResource18" />
				    <asp:BoundField DataField="UpdateBy" HeaderText="UpdateBy" SortExpression="UpdateBy" meta:resourcekey="BoundFieldResource19" />
				    <asp:BoundField DataField="OwnerGroupID" HeaderText="OwnerGroupID" SortExpression="OwnerGroupID" Visible="False" meta:resourcekey="BoundFieldResource21" />
				    <asp:TemplateField HeaderText="Edit" ItemStyle-Width="60" ItemStyle-HorizontalAlign="center" meta:resourcekey="lblEditResource1">
                        <ItemTemplate>
                            <a href="productupdate.aspx?Model=<%# Eval("Model")%>"><img src="Images/icon-edit.gif" border="0" /></a>
                        </ItemTemplate>
                    </asp:TemplateField>
			    </Columns>
			    <HeaderStyle CssClass="GridHeaderStyle" ForeColor="White" />
			    <RowStyle CssClass="GridRowStyle"/>
			    <AlternatingRowStyle CssClass="GridAltRowStyle"/>
			    <SelectedRowStyle CssClass="GridSelectedRowStyle"/>
			    <PagerStyle CssClass="GridPagerStyle" ForeColor="White"/>
			    <FooterStyle CssClass="GridFooterStyle" BackColor="#F7DFB5" ForeColor="#8C4510"/>
		    </asp:GridView>
        </asp:Panel>
        <asp:Panel ID="PanelDetail" runat="server" Visible="false" meta:resourcekey="PanelDetailResource1">
            <div style="padding: 10px">
                <fieldset>
                    <br />
                    <table style="width: 60%;">
                        <tr>
                            <td align="left" style="vertical-align: bottom">
                                <asp:ImageButton ID="ibGeneral" runat="server" ImageUrl="~/Images/a_General_blue-en-us.gif"
                                    OnClick="ibGeneral_Click" meta:resourcekey="ibGeneralResource1" />
                                <asp:ImageButton ID="ibMisc" runat="server" ImageUrl="~/Images/a_Others_gray-en-us.gif" OnClick="ibMisc_Click"
                                    meta:resourcekey="ibMiscResource1" />
                                <asp:ImageButton ID="ibProject" runat="server" ImageUrl="~/Images/a_ProjectList_gray-en-us.gif"
                                    OnClick="ibProject_Click" />
                                <asp:Button ID="btnAddProjectToProduct" runat="server" meta:resourcekey="btnAddProjectToProductResource1"
                                    Text="Add Project To Product" CssClass="submit" Width="200px" OnClientClick="javascript:OpenFilter();" OnClick="btnAddProjectToProduct_Click" /></td>
                        </tr>
                    </table>
                    <asp:Panel ID="PanelGeneral" runat="server" meta:resourcekey="PanelGeneralResource1"
                        BorderStyle="Solid" BorderWidth="1px">
                        <table>
                            <tr>
                                <td style="vertical-align: middle; text-align: right;" colspan="1">
                                    <asp:Label ID="lblModel" runat="server" meta:resourcekey="lblModel" Text="Model"
                                        Width="100%"></asp:Label>
                                </td>
                                <td style="vertical-align: middle; text-align: left;" colspan="1">
                                    <asp:TextBox ID="txtModel" runat="server" CssClass="required" ReadOnly="True" meta:resourcekey="txtModelResource1"
                                        MaxLength="30"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator1"
                                            runat="server" ControlToValidate="txtModel" Display="Dynamic" ErrorMessage="Model is required."
                                            meta:resourcekey="RequiredFieldValidator1Resource1" Width="107px"></asp:RequiredFieldValidator></td>
                                <td style="vertical-align: middle; text-align: right;" colspan="1">
                                    <asp:Label ID="lblRevision" runat="server" meta:resourcekey="lblRevision" Text="Revision"
                                        Width="100%"></asp:Label>
                                </td>
                                <td style="vertical-align: middle; text-align: left;" colspan="1">
                                    <asp:TextBox ID="txtRevision" runat="server" CssClass="required" ReadOnly="True"
                                        meta:resourcekey="txtModelResource1" MaxLength="30"></asp:TextBox><asp:RequiredFieldValidator
                                            ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtRevision" Display="Dynamic"
                                            ErrorMessage="Revision is required." meta:resourcekey="RequiredFieldValidator1Resource1"></asp:RequiredFieldValidator></td>
                            </tr>
                            <tr>
                                <td style="vertical-align: middle; text-align: right;">
                                    <asp:Label ID="lblModelName" runat="server" meta:resourcekey="lblModelName" Text="Model Name"
                                        Width="100%"></asp:Label>
                                </td>
                                <td style="vertical-align: middle; text-align: left;" colspan="4">
                                    <asp:TextBox ID="txtModelName" runat="server" ReadOnly="True" Width="472px" CssClass="required"
                                        meta:resourcekey="txtModelNameResource1" MaxLength="100"></asp:TextBox><asp:RequiredFieldValidator
                                            ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtModelName"
                                            Display="Dynamic" ErrorMessage="Model Name is required." meta:resourcekey="RequiredFieldValidator2Resource1"></asp:RequiredFieldValidator></td>
                            </tr>
                            <tr>
                                <td style="vertical-align: middle; text-align: right;">
                                    <asp:Label ID="lblSpecification" runat="server" meta:resourcekey="lblSpecification"
                                        Text="Specification" Width="100%"></asp:Label>
                                </td>
                                <td style="vertical-align: middle; text-align: left;" colspan="4">
                                    <asp:TextBox ID="txtSpecification" runat="server" ReadOnly="True" Width="472px" CssClass="required"
                                        meta:resourcekey="txtSpecificationResource1" MaxLength="100"></asp:TextBox><asp:RequiredFieldValidator
                                            ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtSpecification"
                                            Display="Dynamic" ErrorMessage="Specification is required." meta:resourcekey="RequiredFieldValidator3Resource1"></asp:RequiredFieldValidator></td>
                            </tr>
                            <tr>
                                <td style="vertical-align: middle; text-align: right;">
                                    <asp:Label ID="lblCreateDate" runat="server" meta:resourcekey="lblCreateDate" Text="Create Date"
                                        Width="100%"></asp:Label>
                                </td>
                                <td style="vertical-align: middle; text-align: left;" colspan="4">
                                    <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtCreateDate" Format="dd/MM/yyyy"
                                        Enabled="True">
                                    </cc1:CalendarExtender>
                                    <asp:TextBox ID="txtCreateDate" runat="server" CssClass="required" Width="100px"
                                        meta:resourcekey="txtCreateDateResource1"></asp:TextBox><asp:RequiredFieldValidator
                                            ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtCreateDate"
                                            Display="Dynamic" ErrorMessage="Create Date is required." meta:resourcekey="RequiredFieldValidator4Resource1"></asp:RequiredFieldValidator></td>
                            </tr>
                            <tr>
                                <td style="vertical-align: middle; text-align: right;">
                                    <asp:Label ID="lblProjectGroupID" runat="server" meta:resourcekey="lblProjectGroupID"
                                        Text="Project Group ID" Width="100%" Visible="False"></asp:Label>
                                </td>
                                <td style="vertical-align: middle; text-align: left;" colspan="4">
                                    <asp:ObjectDataSource ID="ODSProjects" runat="server" OldValuesParameterFormatString="original_{0}"
                                        SelectMethod="GetProjectDistinctPGI" TypeName="IPTableAdapters.ProjectDistinctPGITableAdapter">
                                    </asp:ObjectDataSource>
                                    <asp:DropDownList ID="ddlProjectGroupID" runat="server" Enabled="False" DataTextField="ProjectGroupID"
                                        DataValueField="ProjectGroupID" Width="180px" meta:resourcekey="ddlProjectGroupIDResource1"
                                        Visible="False">
                                    </asp:DropDownList></td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <asp:Panel ID="PanelMisc" runat="server" Visible="False" meta:resourcekey="PanelMiscResource1"
                        BorderStyle="Solid" BorderWidth="1px">
                        <table>
                            <tr>
                                <td colspan="2" style="vertical-align: top; text-align: right;">
                                    <asp:Label ID="lblMisc" runat="server" Font-Bold="True" Text="Miscellaneous Information"
                                        meta:resourcekey="lblMiscResource1"></asp:Label></td>
                            </tr>
                            <tr>
                                <td style="vertical-align: top; text-align: right;">
                                </td>
                            </tr>
                            <tr>
                                <td style="vertical-align: top; text-align: right;">
                                    <asp:Label ID="lblCharInfo" runat="server" Font-Bold="True" Text="Character Fields :"
                                        meta:resourcekey="lblCharInfoResource1" Width="100%"></asp:Label></td>
                            </tr>
                            <tr>
                                <td colspan="1" style="vertical-align: top; text-align: right;">
                                    <asp:Label ID="lblRemarks1" runat="server" Text="Remarks 1" Width="100%" meta:resourcekey="lblRemarks1Resource1"></asp:Label></td>
                                <td colspan="3" style="vertical-align: bottom; text-align: left;">
                                    <asp:TextBox ID="txtRemarks1" runat="server" Width="462px" MaxLength="100" meta:resourcekey="txtRemarks1Resource1"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td colspan="1" style="vertical-align: top; text-align: right;">
                                    <asp:Label ID="lblRemarks2" runat="server" Text="Remarks 2" Width="100%" meta:resourcekey="lblRemarks2Resource1"></asp:Label></td>
                                <td colspan="3" style="vertical-align: bottom; text-align: left;">
                                    <asp:TextBox ID="txtRemarks2" runat="server" Width="462px" MaxLength="100" meta:resourcekey="txtRemarks2Resource1"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td colspan="1" style="vertical-align: top; text-align: right;">
                                    <asp:Label ID="lblRemarks3" runat="server" Text="Remarks 3" Width="100%" meta:resourcekey="lblRemarks3Resource1"></asp:Label></td>
                                <td colspan="3" style="vertical-align: bottom; text-align: left;">
                                    <asp:TextBox ID="txtRemarks3" runat="server" Width="462px" MaxLength="100" meta:resourcekey="txtRemarks3Resource1"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td colspan="1" style="vertical-align: top; text-align: right;">
                                    <asp:Label ID="lblRemarks4" runat="server" Text="Remarks 4" Width="100%" meta:resourcekey="lblRemarks4Resource1"></asp:Label></td>
                                <td colspan="3" style="vertical-align: bottom; text-align: left;">
                                    <asp:TextBox ID="txtRemarks4" runat="server" Width="462px" MaxLength="100" meta:resourcekey="txtRemarks4Resource1"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td colspan="1" style="vertical-align: top; text-align: right;">
                                    <asp:Label ID="lblRemarks5" runat="server" Text="Remarks 5" Width="100%" meta:resourcekey="lblRemarks5Resource1"></asp:Label></td>
                                <td colspan="3" style="vertical-align: bottom; text-align: left;">
                                    <asp:TextBox ID="txtRemarks5" runat="server" Width="462px" MaxLength="100" meta:resourcekey="txtRemarks5Resource1"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td colspan="2" style="vertical-align: middle; text-align: left;">
                                    <asp:Label ID="lblDataInfo" runat="server" Font-Bold="True" Text="Date Fields :"
                                        meta:resourcekey="lblDataInfoResource1"></asp:Label></td>
                            </tr>
                            <tr>
                                <td colspan="1" style="vertical-align: top; text-align: right;">
                                    <asp:Label ID="lblDate1" runat="server" Text="Date 1" Width="100%" meta:resourcekey="lblDate1Resource1"></asp:Label></td>
                                <td colspan="1" style="vertical-align: bottom; text-align: left;">
                                    <cc1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtDate1"
                                        Enabled="True" Format="dd/MM/yyyy">
                                    </cc1:CalendarExtender>
                                    <asp:TextBox ID="txtDate1" runat="server" Width="102px" meta:resourcekey="txtDate1Resource1"></asp:TextBox></td>
                                <td colspan="1" style="vertical-align: top; text-align: right;">
                                    <asp:Label ID="lblDate2" runat="server" Text="Date 2" Width="100%" meta:resourcekey="lblDate2Resource1"></asp:Label></td>
                                <td colspan="1" style="vertical-align: middle; text-align: left">
                                    <cc1:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="txtDate2"
                                        Enabled="True" Format="dd/MM/yyyy">
                                    </cc1:CalendarExtender>
                                    <asp:TextBox ID="txtDate2" runat="server" Width="102px" meta:resourcekey="txtDate2Resource1"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td colspan="1" style="vertical-align: top; text-align: right;">
                                    <asp:Label ID="lblDate3" runat="server" Text="Date 3" Width="100%" meta:resourcekey="lblDate3Resource1"></asp:Label></td>
                                <td colspan="1" style="vertical-align: bottom; text-align: left;">
                                    <cc1:CalendarExtender ID="CalendarExtender4" runat="server" TargetControlID="txtDate3"
                                        Enabled="True" Format="dd/MM/yyyy">
                                    </cc1:CalendarExtender>
                                    <asp:TextBox ID="txtDate3" runat="server" Width="102px" meta:resourcekey="txtDate3Resource1"></asp:TextBox></td>
                                <td colspan="1" style="vertical-align: top; text-align: right;">
                                    <asp:Label ID="lblDate4" runat="server" Text="Date 4" Width="100%" meta:resourcekey="lblDate4Resource1"></asp:Label></td>
                                <td colspan="1" style="vertical-align: middle; text-align: left">
                                    <cc1:CalendarExtender ID="CalendarExtender5" runat="server" TargetControlID="txtDate4"
                                        Enabled="True" Format="dd/MM/yyyy">
                                    </cc1:CalendarExtender>
                                    <asp:TextBox ID="txtDate4" runat="server" Width="102px" meta:resourcekey="txtDate4Resource1"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td colspan="1" style="vertical-align: top; text-align: right;">
                                    <asp:Label ID="lblDate5" runat="server" Text="Date 5" Width="100%" meta:resourcekey="lblDate5Resource1"></asp:Label></td>
                                <td colspan="1" style="vertical-align: bottom; text-align: left;">
                                    <cc1:CalendarExtender ID="CalendarExtender6" runat="server" TargetControlID="txtDate5"
                                        Enabled="True" Format="dd/MM/yyyy">
                                    </cc1:CalendarExtender>
                                    <asp:TextBox ID="txtDate5" runat="server" Width="102px" meta:resourcekey="txtDate5Resource1"></asp:TextBox></td>
                                <td colspan="1" style="vertical-align: top; text-align: right">
                                </td>
                                <td colspan="1" style="vertical-align: middle; text-align: left">
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" style="vertical-align: middle; text-align: left;">
                                    <asp:Label ID="lblDecimalInfo" runat="server" Font-Bold="True" Text="Decimal Fields :"
                                        meta:resourcekey="lblDecimalInfoResource1"></asp:Label></td>
                            </tr>
                            <tr>
                                <td colspan="1" style="vertical-align: top; text-align: right;">
                                    <asp:Label ID="lblDeci1" runat="server" Text="Decimal 1" Width="100%" meta:resourcekey="lblDeci1Resource1"></asp:Label></td>
                                <td colspan="1" style="vertical-align: bottom; text-align: left;">
                                    <cc1:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="txtDeci1"
                                        MaskType="Number" Mask="9,999,999.99" InputDirection="RightToLeft" AcceptNegative="Left"
                                        DisplayMoney="Left" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder=""
                                        CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder=""
                                        CultureTimePlaceholder="" Enabled="True">
                                    </cc1:MaskedEditExtender>
                                    <asp:TextBox ID="txtDeci1" runat="server" Width="102px" meta:resourcekey="txtDeci1Resource1"></asp:TextBox></td>
                                <td colspan="1" style="vertical-align: top; text-align: right;">
                                    <asp:Label ID="lblDeci2" runat="server" Text="Decimal 2" Width="100%" meta:resourcekey="lblDeci2Resource1"></asp:Label></td>
                                <td colspan="1" style="vertical-align: middle; text-align: left">
                                    <cc1:MaskedEditExtender ID="MaskedEditExtender2" runat="server" TargetControlID="txtDeci2"
                                        MaskType="Number" Mask="9,999,999.99" InputDirection="RightToLeft" AcceptNegative="Left"
                                        DisplayMoney="Left" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder=""
                                        CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder=""
                                        CultureTimePlaceholder="" Enabled="True">
                                    </cc1:MaskedEditExtender>
                                    <asp:TextBox ID="txtDeci2" runat="server" Width="102px" meta:resourcekey="txtDeci2Resource1"></asp:TextBox></td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <asp:Panel ID="PanelProject" runat="server" BorderStyle="Solid" BorderWidth="1px" Visible="False">
                        <asp:GridView CssClass="Grid" ID="gvProjects" runat="server" AutoGenerateColumns="False"
                            BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px"
                            CellPadding="3" CellSpacing="2" DataSourceID="ODSProjectList" DataKeyNames="ProjectCode"
                            AllowPaging="True" EmptyDataText="No Record(s) yet.">
                            <FooterStyle CssClass="GridFooterStyle" BackColor="#F7DFB5" ForeColor="#8C4510" />
                            <Columns>
                                <asp:BoundField DataField="projectcode" HeaderText="Project Code" SortExpression="projectcode">
                                    <ItemStyle Width="120px" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="country" HeaderText="Country" SortExpression="country">
                                    <ItemStyle Width="150px" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="title" HeaderText="Title" SortExpression="title">
                                    <ItemStyle Width="200px" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="status" HeaderText="Status" SortExpression="status">
                                    <ItemStyle Width="100px" Wrap="False" />
                                </asp:BoundField>
                                <asp:TemplateField HeaderText="Delete">
                                    <ItemStyle HorizontalAlign="Center" />
                                    <HeaderStyle CssClass="GridHeaderStyle" HorizontalAlign="Center" />
                                    <ItemTemplate>
                                        &nbsp;<asp:CheckBox ID="cbDelete" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <RowStyle CssClass="GridRowStyle" BackColor="#FFF7E7" ForeColor="#8C4510" />
                            <SelectedRowStyle CssClass="GridSelectedRowStyle" BackColor="#738A9C" Font-Bold="False"
                                ForeColor="White" />
                            <PagerStyle CssClass="GridPagerStyle" ForeColor="#8C4510" HorizontalAlign="Center" />
                            <HeaderStyle CssClass="GridHeaderStyle" BackColor="DarkBlue" Font-Bold="True" ForeColor="White" />
                        </asp:GridView>
                        <asp:ObjectDataSource ID="ODSProjectList" runat="server" OldValuesParameterFormatString="original_{0}"
                            SelectMethod="GetProjectList" TypeName="IPTableAdapters.taGetProductSearchSp">
                            <SelectParameters>
                                <asp:ControlParameter ControlID="GridViewProducts" Name="Model" PropertyName="SelectedValue"
                                    Type="String" />
                            </SelectParameters>
                        </asp:ObjectDataSource>
                        <asp:Button ID="btnDeleteProject" runat="server" OnClick="btnDeleteProject_Click" meta:resourcekey="btnDelete"
                            Text="Delete" />
                        </asp:Panel>
                    <br />
                    <asp:Panel ID="PanelButton" runat="server">
                    <table>
                        <tr>
                            <td align="center">
                                <asp:Button ID="btnAdd" runat="server" CssClass="submit" OnClick="btnAdd_Click" Text="New"
                                    meta:resourcekey="btnAdd" CausesValidation="False" />
                                <asp:Button ID="btnModify" runat="server" CssClass="submit" OnClick="btnModify_Click"
                                    meta:resourcekey="btnModify" Text="Edit" CausesValidation="False" />
                                <asp:Button ID="btnSave" runat="server" CssClass="submit" OnClick="btnSave_Click"
                                    meta:resourcekey="btnSave" Text="Save" Enabled="False" />
                                <asp:Button ID="btnDelete" runat="server" CausesValidation="False" CssClass="submit"
                                    meta:resourcekey="btnDelete" OnClick="btnDelete_Click" Text="Delete" />
                                <asp:Button ID="btnCancel" runat="server" CausesValidation="False" CssClass="reset"
                                    meta:resourcekey="btnCancel" OnClick="btnCancel_Click" Text="Cancel" />
                                </td>
                        </tr>
                    </table>
                    </asp:Panel>
                    <asp:CheckBox ID="chkForOperation" runat="server" Visible="False" meta:resourcekey="chkForOperationResource1" />
                    <asp:CheckBox ID="cbForUpdate" runat="server" CssClass="hidden" meta:resourcekey="cbForUpdateResource1" /></fieldset>
            </div>
            &nbsp;
        </asp:Panel>
    </div>        
</asp:Content>

